package com.yudean.esb.dao.erp;

import com.yudean.esb.domain.erp.ErpIdsArInvoicesInt;
import com.yudean.esb.mapper.erp.ErpIdsArInvoicesIntMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
@Scope("prototype")
public class ErpArInvoiceIntDao {

    @Resource
    public ErpIdsArInvoicesIntMapper erpIdsArInvoicesIntMapper;

    public int insertSelective(ErpIdsArInvoicesInt record) {
        return erpIdsArInvoicesIntMapper.insertSelective(record);
    }

    public int batchInsertErpIdsArInvoicesIntData(List<ErpIdsArInvoicesInt> erpIdsArInvoicesIntList) {
        return erpIdsArInvoicesIntMapper.batchInsertErpIdsArInvoicesIntData(erpIdsArInvoicesIntList);
    }

    public int deleteArInvoicesIntByControlId(long controlId) {
        return erpIdsArInvoicesIntMapper.deleteArInvoicesIntByControlId(controlId);
    }
}
